﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
public partial class _Default : System.Web.UI.Page
{
    public static string temp;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (!String.IsNullOrEmpty(Request.QueryString["a_id"]) && !String.IsNullOrEmpty(Request.QueryString["m_id"]))
            {
                Response.Redirect("http://localhost/UBOX/UboxWeb/ReadPage.aspx?a_id=" + Request.QueryString["a_id"] + "&m_id=" + Request.QueryString["m_id"]);
            }
            //DateTime CreateTime = DateTime.Now;
            //string test = CreateTime.ToString();
            //int Uid = 2;
            //try
            //{
            //    Uid = Convert.ToInt32(Context.Request.Cookies["u_id"].Value);
            //}
            //catch
            //{

            //}
            //string test = Uid.ToString();


            ////Session["u_id"]
            ////Session["u_name"] => 改用這個
            //temp = FormsAuthentication.HashPasswordForStoringInConfigFile(test, "sha1");
            ////string un = Session["u_name"].ToString();//要改用這個
            ////temp = FormsAuthentication.HashPasswordForStoringInConfigFile(un, "sha1");//要改用這個
            //Session["CreatePostTime"] = temp;//要砍掉
            ////this.Button1.Text = temp;
        }

    }
}